<?php
session_start();
 if (empty($_SESSION['username']) AND empty($_SESSION['passuser'])){
  echo "<link href='style.css' rel='stylesheet' type='text/css'>
 <center>Untuk mengakses modul, Anda harus login <br>";
  echo "<a href=../../index.php><b>LOGIN</b></a></center>";
}
else{
	?>
<div id="toolbar-box">
	<div class="t">
		<div class="t">
			<div class="t"></div>
		</div>
	</div>
	<div class="m">
		<div class="toolbar" id="toolbar">
			<table class="toolbar">
            	<tr>
					<td class="button" id="toolbar-new">
  					<a href=index.php onclick="javascript: submitbutton('cancel')" class="toolbar"> <span class="icon-32-cancel" title="Cancel"></span>
Cancel</a></td>
  					<span class="icon-32-new" title="New">
  					</span>
  					</a>
					</td>
				</tr>
          </table>
		</div>
		<div class="header icon-48-addedit">Ganti Password</div>
			<div class="clr"></div>
  </div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
</div>
<?
$module=$_GET[module];
	$act=$_GET[act];
	if($_GET['module']=='password' AND $act=='pss1'){
    echo "<h2 style='color:#f00;'>&curren; Password baru yang Anda masukkan sebanyak dua kali belum cocok.</h2>";
	}
	elseif($_GET['module']=="password" AND $act=='pss2'){
    echo "<h2 style='color:#f00;'>&curren; Anda salah memasukkan Password Lama Anda.</h2>";
	}
	elseif($_GET['module']=="password" AND $act=='ubah'){
    echo "<h2 style='color:#f00;'>&curren; Anda harus mengisikan semua data pada form Ganti Password.</h2>";
	}
    echo "<form method=POST action=modul/mod_password/aksi_password.php>
          <table>
          <tr><td width=250px>Masukkan Password Lama</td><td> : <input type=text name='pass_lama'></td></tr>
          <tr><td>Masukkan Password Baru</td><td> : <input type=text name='pass_baru'></td></tr>
          <tr><td>Masukkan Lagi Password Baru</td><td> : <input type=text name='pass_ulangi'></td></tr>
          <tr><td colspan=2><input type=submit value=Proses class=tombol1>
                            <input type=reset value=Reset class=tombol1></td></tr>
          </table></form>";
}
?>
 